package com.linkage.event.service;

import com.github.pagehelper.PageInfo;
import com.linkage.event.pojo.entity.EventAttention;
import com.linkage.event.pojo.entity.EventDiscusses;
import com.linkage.event.pojo.vo.ReplyVo;

import java.util.List;

public interface ProblemService {

    PageInfo queryProblemListByPage(EventDiscusses discusses,Integer page,Integer pageSize,String token)throws Exception;

    void createDiscusses(EventDiscusses eventDiscusses,String token);

    void createReply(ReplyVo replyVo,String token);

    void deleteProblem(String prolbemId);

    EventDiscusses queryProblemInfo(String problemId);

    List<EventDiscusses> myAttention(String userId);

    /**
     * 创建关注
     * @param eventAttention
     * @throws Exception
     */
    void createAttention(EventAttention eventAttention) throws Exception;

    /**
     * 取消关注
     * @param eventAttentionKey
     * @throws Exception
     */
    void cancelAttention(EventAttention eventAttentionKey) throws Exception;
}
